home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
amos
/
guicomp.lha
/
GuiShell.Amos
/
GuiShell.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1992-09-02
|
3KB
|
126 lines
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' AMOSPro GUI Compiler Shell V1.1
' �1996 Dairymen Soft
' Written by Pietro Ghizzoni - Amos Professional Team Coordinator
' E-Mail: ghizzo@galactica.it
Amos To Back : Track Play 7 : Extension_24_02C6 : Extension_24_0018 1,1,20
Global FILE$,SOURCE$,DEST$,DEF$,PATH$,JUMP$,LIB$,TITLE$,HAND,HAND2
DEF$=" WB NODEF NOERR TYPE=0" : JUMP$=" NOLONG" : LIB$=" INCLIB" : Restore ABOUT
For I=1 To 4 : Read A$ : M$=M$+A$+Chr$(10) : Next : TITLE$="GUI Compiler Shell Request"
PATH$=Resource$(0)+"GUICmp"
If Exist(PATH$)=False
Repeat
REQ["Load compiler"]
Until Extension_24_0166 ="GUICmp"
PATH$=FILE$
End If
Do
GAD= Extension_24_0024 : CD= Extension_24_0042 : C$= Extension_24_0050
If GAD=-1
Extension_24_0120 : Track Stop : Amos To Front : End
Else If GAD=0
REQ["Select source program"]
If Param=True : SOURCE$=FILE$ : Extension_24_008E 1,2,0,Varptr(FILE$) : End If
Else If GAD=1
Repeat
A=1 : REQ["Select destination program"]
If Param=True : A= Extension_24_0140("GUI Compiler Shell Request","File already exist! Overwrite?","OK|Cancel") : End If
Until A><0
DEST$=FILE$ : Extension_24_008E 1,3,0,Varptr(FILE$)
Else If GAD=2
If Exist(C$)
SOURCE$=C$
Else
Extension_24_008E 1,2,0,Varptr(SOURCE$)
End If
Else If GAD=3
DEST$=C$
If Exist(DEST$)
A= Extension_24_0140("GUI Compiler Shell Request","File already exist! Overwrite?","OK|Cancel")
If A=0 : DEST$="" : End If
End If
Extension_24_008E 1,3,0,Varptr(DEST$)
Else If GAD=4
C0MPILE
Else If GAD=5
If CD=0 : JUMP$=" NOLONG" Else JUMP$=" LONG" : End If
Else If GAD=6
If CD=0 : LIB$=" INCLIB" Else LIB$=" NOLIB" : End If
Else If GAD=7
Extension_24_0322 1
Else If GAD=8
A= Extension_24_0140("About",M$,"OK")
Else If GAD=9
If CD : Track Play 7 Else Track Stop : End If
Else If GAD=-6
Extension_24_0334 1
End If
Loop
Procedure REQ[F$]
F$= Extension_24_0152(F$,"","") : FILE$=""
If F$><"" Then FILE$=F$
End Proc[Exist(FILE$)]
Procedure C0MPILE
V$=Chr$(34) : COM$=" FROM "+V$+SOURCE$+V$+" TO "+V$+DEST$+V$+DEF$+JUMP$+LIB$
Timer=0 : _EXEC[PATH$+COM$] : T=Timer : Trap Open In 1,DEST$
If Errtrap
A= Extension_24_0140(TITLE$,"Compilation Error!","Ooopss!")
Else
M=T/3000 : S=(T/50)-(M*60) : TIME$=Str$(M)+":"+Str$(S) : TIME$=TIME$-" "
A= Extension_24_0140(TITLE$,"Time used "+TIME$+" secs","OK") : Close
End If
Dreg(1)=HAND : A=Doscall(-36) : Dreg(1)=HAND2 : A=Doscall(-36)
End Proc
Procedure _EXEC[C$]
RAW$="RAW:28/69/584/128/GUI Compiler Output"+Chr$(0) : Dreg(1)=Varptr(RAW$) : Dreg(2)=1004
HAND=Doscall(-30)
NIL$="NIL:"+Chr$(0) : Dreg(1)=Varptr(NIL$) : Dreg(2)=1004
HAND2=Doscall(-30)
If HAND
C$=C$+Chr$(0) : Dreg(1)=Varptr(C$) : Dreg(2)=HAND2 : Dreg(3)=HAND
F=Doscall(-222)
End If
End Proc
ABOUT:
Data "AMOSPro Gui Compiler Shell V1.1"
Data " �1996 Dairymen Soft"
Data " Written by: Pietro Ghizzoni"
Data " E-Mail: ghizzo@galactica.it"
' Amos Professional Team production